package org.jeecg.modules.product.lawsRegulations.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict;


/**
 * @Description: 法律法规
 * @Author: jeecg-boot
 * @Date:   2024-07-07
 * @Version: V1.0
 */
@Data
@TableName("tb_laws_regulations")
@Schema(description="法律法规")
public class TbLawsRegulations implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**法规编号*/
    @Excel(name = "法规编号", width = 15)
    @Schema(description = "法规编号")
    private String number;
	/**文件名称*/
    @Excel(name = "文件名称", width = 15)
    @Schema(description = "文件名称")
    private String name;
	/**法律法规分类*/
    @Excel(name = "法律法规分类", width = 15, dicCode = "lawsRegulationsType")
    @Dict(dicCode = "lawsRegulationsType")
    @Schema(description = "法律法规分类")
    private String type;
	/**强制程度*/
    @Excel(name = "强制程度", width = 15, dicCode = "coerciveDegree")
    @Dict(dicCode = "coerciveDegree")
    @Schema(description = "强制程度")
    private String coerciveDegree;
	/**发布机构*/
    @Excel(name = "发布机构", width = 15)
    @Schema(description = "发布机构")
    private String issuingAuthority;
	/**发布日期*/
    @Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "发布日期")
    private Date releaseDate;
	/**启用日期*/
    @Excel(name = "启用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "启用日期")
    private Date startDate;
	/**废止日期*/
    @Excel(name = "废止日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "废止日期")
    private Date annulmentDate;
	/**是否现行*/
    @Excel(name = "是否现行", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "是否现行")
    private String currentOrNot;
	/**附件*/
    @Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private String doc;
	/**复查时间*/
    @Excel(name = "复查时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "复查时间")
    private Date reviewDate;
	/**辨识人*/
    @Excel(name = "辨识人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "辨识人")
    private String recognizePeople;
	/**辨识日期*/
    @Excel(name = "辨识日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "辨识日期")
    private Date recognizeDate;
	/**来源*/
    @Excel(name = "来源", width = 15)
    @Schema(description = "来源")
    private String source;
	/**适用部门*/
    @Excel(name = "适用部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Schema(description = "适用部门")
    private String applicableDepartment;
	/**状态*/
    @Excel(name = "状态", width = 15, dicCode = "normalOrStop")
    @Dict(dicCode = "normalOrStop")
    @Schema(description = "状态")
    private String status;
	/**租户id*/
    @Excel(name = "租户id", width = 15)
    @Schema(description = "租户id")
    private String tenantId;
}
